package cn.gson.oasys.services.task.impl;

import cn.gson.oasys.model.dao.taskdao.TaskuserDao;
import cn.gson.oasys.model.entity.task.Taskuser;
import cn.gson.oasys.model.entity.user.User;
import cn.gson.oasys.services.task.TaskService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;
import java.util.List;

@Service
@Transactional
public class TaskServiceImpl implements TaskService {

    @Autowired
    private TaskuserDao taskuserDao;

    //记日志
    Logger log = LoggerFactory.getLogger(getClass());

    //获取用户的新任务
    @Override
    public List<Taskuser> findByUserIdAndStatusId(User user, int i) {
        return taskuserDao.findByUserIdAndStatusId(user, i);
    }

}
